export const dataBox = [
    {
        type: 'data-view',
        icon: 'form-view',
        name: '数据视图',
        category: 'container',
        widgetList: [],
        options:{
            name: '',
            customClass: '',  //自定义css类名
            entity: '',  //自定义实体
            dataSource: '',//当前组件配置的数据源
            initStyle:{
                height:"38",
                minHeight:'38',
                width: "auto",
                backgroundColor:'#FFF',
                color:'#000',
                padding: "0",
                margin: "0",
            }, // 添加的样式
        }
    },
    {
        type: 'data-column',
        icon: 'list-view',
        name: '数据表格',
        category: 'container',
        rows:[],
        options:{
            name: '',
            customClass: '',  //自定义css类名
            entity: '',  //自定义实体
            dataSource: '',//当前组件配置的数据源
          // 添加的样式
            dataColumnConfig:{
                pageSize:10,
                isBatch: true,
                isBatchDel: true,
                operateColumn: false,
                showSearch: true,
                pagination: true,
                refresh: true, // 刷新
                columnSelect: true, // 表头控制
                showAdd: true, // 新增按钮控制
                sort: true, // 表头控制
            },
            initStyle:{
                height:"38",
                minHeight:'38',
                width: "auto",
                backgroundColor:'#FFF',
                color:'#000',
                padding: "0",
                margin: "0",
            }
        }
    },
    
]

export const containers = [
    {
        type: 'grid',
        category: 'container',
        icon: 'grid',
        cols: [],
        options: {
            name: '',
            hidden: false,
            gutter: 12,
            colHeight: null,  //栅格列统一高度属性，用于解决栅格列设置响应式布局浮动后被挂住的问题！！
            customClass: '',  //自定义css类名
        }
    },
    {
        type: 'tab',
        category: 'container',
        icon: 'tab',
        displayType: 'border-card',
        tabs: [],
        options: {
            name: '',
            hidden: false,
            customClass: '',  //自定义css类名
        }
    },

    {
        type: 'grid-col',
        category: 'container',
        icon: 'grid-col',
        internal: true,
        widgetList: [],
        options: {
            name: '',
            hidden: false,
            span: 12,
            offset: 0,
            push: 0,
            pull: 0,
            responsive: false,  //是否开启响应式布局
            md: 12,
            sm: 12,
            xs: 12,
            customClass: '',  //自定义css类名
        }
    },

    {
        type: 'table-cell',
        category: 'container',
        icon: 'table-cell',
        internal: true,
        widgetList: [],
        merged: false,
        options: {
            name: '',
            cellWidth: '',
            cellHeight: '',
            colspan: 1,
            rowspan: 1,
            wordBreak: false,  //是否自动换行
            customClass: '',  //自定义css类名
            fieldAttribute: '',  //自定义属性

        }
    },
    {
        type: 'table-column',
        category: 'container',
        icon: 'table-cell',
        internal: true,
        widgetList: [],
        merged: false,
        options: {
            name: '',
            cellWidth: '',
            cellHeight: '',
            colspan: 1,
            rowspan: 1,
            wordBreak: false,  //是否自动换行
            customClass: '',  //自定义css类名
            fieldAttribute: '',  //自定义属性

        }
    },

    {
        type: 'tab-pane',
        category: 'container',
        icon: 'tab-pane',
        internal: true,
        widgetList: [],
        options: {
            name: '',
            label: '',
            hidden: false,
            active: false,
            disabled: false,
            customClass: '',  //自定义css类名
        }
    },

    {
        type: 'el-dialog',
        category: 'container',
        icon: 'dialog',
        widgetList: [],
        options: {
            name: '',
            label: 'dialog',
            hidden: false,
            visible: "",
            // disabled: false,
            customClass: '',  //自定义css类名
            cellWidth: "",
            footerButton: [],
            attributeED: {
                fullscreen: false,//是否为全屏
                modal: true,//是否需要遮罩
                modalAppendToBody: true,//遮罩插入body
                appendToBody: true,//Dialog插入body
                lockScroll: true,//锁定body滚动
                closeOnClickModal: false,//点击model关闭dialog
                closeOnPressEscape: false,//ESC关闭dialog
                showClose: true,//显示关闭按钮
                destroyOnClose: false,//关闭时销毁内部元素
            }
        }
    },

    {
        type: 'el-drawer',
        category: 'container',
        icon: 'drawer',
        widgetList: [],
        options: {
            name: '',
            label: 'drawer',
            hidden: false,
            visible: "",
            customClass: '',  //自定义css类名
            footerButton: [],
            attributeEDR: {
                size: "40%",//drawer大小
                fullscreen: false,//是否为全屏
                withHeader: true,//是否显示头部
                modal: true,//是否需要遮罩
                showClose: true,//是否显示关闭按钮
                direction: "rtl",//打开方向
                modalAppendToBody: true,//遮罩插入drawer
                appendToBody: true,//drawer插入body
                wrapperClosable: false,//点击model关闭drawer
                closeOnPressEscape: false,//ESC关闭drawer
                destroyOnClose: false,//关闭时销毁内部元素
            }
        }
    },
    {
        type: 'box-container',
        category: 'container',
        icon: 'card',
        widgetList: [],
        merged: false,
        options: {
            name: '',
            label: '',
            customClass: '',  //自定义css类名
            initStyle:{
                height:"38",
                minHeight:'38',
                width: "100%",
                backgroundColor:'#FFF',
                color:'#000',
                padding: "0",
                margin: "0",
                textAlign:"left", // 对齐方式
            }, // 添加的样式
        }
    },
    {
        type: 'collapse',
        category: 'container',
        icon: 'collapse',
        displayType: 'border-card',
        tabs: [],
        options: {
            name: '',
            hidden: false,
            customClass: '',  //自定义css类名
            collapse:{
            }
        }
    },
    
]

export const basicFields = [
    {
        type: 'input',
        icon: 'text-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            fieldAttribute: '',  //自定义属性
            labelAlign: 'label-right-align',
            type: 'text',
            defaultValue: '',
            placeholder: '',
            columnWidth: '200px',
            size: '',
            labelWidth: null,
            labelHidden: false,
            readonly: false,
            disabled: false,
            hidden: false,
            clearable: true,
            showPassword: false,
            required: false,
            requiredHint: '',
            inputType:'string', // 控件类型
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            minLength: null,
            maxLength: null,
            showWordLimit: false,
            prefixIcon: '',
            suffixIcon: '',
            appendButton: false,
            appendButtonDisabled: false,
            buttonIcon: 'el-icon-search',
            //-------------------
            onCreated: '',
            onMounted: '',
            onInput: '',
            onChange: '',
            onFocus: '',
            onBlur: '',
            onValidate: '',
            onAppendButtonClick: '',
        },
    },

    {
        type: 'textarea',
        icon: 'textarea-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            rows: 3,
            defaultValue: '',
            placeholder: '',
            columnWidth: '200px',
            size: '',
            labelWidth: null,
            labelHidden: false,
            readonly: false,
            disabled: false,
            hidden: false,
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            minLength: null,
            maxLength: null,
            showWordLimit: false,
            //-------------------
            onCreated: '',
            onMounted: '',
            onInput: '',
            onChange: '',
            onFocus: '',
            onBlur: '',
            onValidate: '',
        },
    },

    {
        type: 'number',
        icon: 'number-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            fieldAttribute: '',  //自定义属性
            defaultValue: 0,
            placeholder: '',
            columnWidth: '200px',
            size: '',
            labelWidth: null,
            labelHidden: false,
            disabled: false,
            hidden: false,
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            min: -100000000000,
            max: 100000000000,
            precision: 0,
            step: 1,
            controlsPosition: 'right',
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onFocus: '',
            onBlur: '',
            onValidate: '',
        },
    },

    {
        type: 'radio',
        icon: 'radio-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            defaultValue: null,
            columnWidth: '200px',
            size: '',
            displayStyle: 'inline',
            buttonStyle: false,
            border: false,
            labelWidth: null,
            labelHidden: false,
            disabled: false,
            hidden: false,
            apiData: "",
            value_: "value",
            label_: "label",
            optionItems: [
                {label: 'radio 1', value: 1},
                {label: 'radio 2', value: 2},
                {label: 'radio 3', value: 3},
            ],
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onValidate: '',
        },
    },
    {
        type: 'checkbox',
        icon: 'checkbox-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            defaultValue: [],
            columnWidth: '200px',
            size: '',
            displayStyle: 'inline',
            buttonStyle: false,
            border: false,
            labelWidth: null,
            labelHidden: false,
            disabled: false,
            hidden: false,
            apiData: "",
            value_: "value",
            label_: "label",
            optionItems: [
                {label: 'check 1', value: 1},
                {label: 'check 2', value: 2},
                {label: 'check 3', value: 3},
            ],
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onValidate: '',
        },
    },
    {
        type: 'select',
        icon: 'select-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            fieldAttribute: '', 
            labelAlign: 'label-right-align',
            defaultValue: '',
            placeholder: '',
            columnWidth: '200px',
            size: '',
            labelWidth: null,
            labelHidden: false,
            disabled: false,
            hidden: false,
            clearable: true,
            filterable: false,
            allowCreate: false,
            remote: false,
            automaticDropdown: false,  //自动下拉
            multiple: false,
            multipleLimit: 0,
            apiData: "",
            value_: "value",
            label_: "label",
            optionItems: [
                {label: 'select 1', value: 1},
                {label: 'select 2', value: 2},
                {label: 'select 3', value: 3},
            ],
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onRemoteQuery: '',
            onChange: '',
            onFocus: '',
            onBlur: '',
            onValidate: '',
        },
    },
    {
        type: 'time',
        icon: 'time-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            fieldAttribute: '', 
            labelAlign: 'label-right-align',
            defaultValue: null,
            placeholder: '',
            columnWidth: '200px',
            size: '',
            labelWidth: null,
            labelHidden: false,
            readonly: false,
            disabled: false,
            hidden: false,
            clearable: true,
            editable: false,
            format: 'HH:mm:ss',  //时间格式
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onFocus: '',
            onBlur: '',
            onValidate: '',
        },
    },
    {
        type: 'time-range',
        icon: 'time-range-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            defaultValue: null,
            startPlaceholder: '',
            endPlaceholder: '',
            columnWidth: '200px',
            size: '',
            labelWidth: null,
            labelHidden: false,
            readonly: false,
            disabled: false,
            hidden: false,
            clearable: true,
            editable: false,
            format: 'HH:mm:ss',  //时间格式
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onFocus: '',
            onBlur: '',
            onValidate: '',
        },
    },
    {
        type: 'date',
        icon: 'date-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            fieldAttribute: '', 
            labelAlign: 'label-right-align',
            type: 'date',
            defaultValue: null,
            placeholder: '',
            columnWidth: '200px',
            size: '',
            labelWidth: null,
            labelHidden: false,
            readonly: false,
            disabled: false,
            hidden: false,
            clearable: true,
            editable: false,
            format: 'yyyy-MM-dd',  //日期显示格式
            valueFormat: 'yyyy-MM-dd',  //日期对象格式
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onFocus: '',
            onBlur: '',
            onValidate: '',
        },
    },
    {
        type: 'date-range',
        icon: 'date-range-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            type: 'daterange',
            defaultValue: null,
            startPlaceholder: '',
            endPlaceholder: '',
            columnWidth: '200px',
            size: '',
            labelWidth: null,
            labelHidden: false,
            readonly: false,
            disabled: false,
            hidden: false,
            clearable: true,
            editable: false,
            format: 'yyyy-MM-dd',  //日期显示格式
            valueFormat: 'yyyy-MM-dd',  //日期对象格式
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onFocus: '',
            onBlur: '',
            onValidate: '',
        },
    },
    {
        type: 'switch',
        icon: 'switch-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            defaultValue: null,
            columnWidth: '200px',
            labelWidth: null,
            labelHidden: false,
            disabled: false,
            hidden: false,
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            switchWidth: 40,
            activeText: '',
            inactiveText: '',
            activeColor: null,
            inactiveColor: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onValidate: '',
        },
    },
    {
        type: 'rate',
        icon: 'rate-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            defaultValue: null,
            columnWidth: '200px',
            labelWidth: null,
            labelHidden: false,
            disabled: false,
            hidden: false,
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            max: 5,
            lowThreshold: 2,
            highThreshold: 4,
            allowHalf: false,
            showText: false,
            showScore: false,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onValidate: '',
        },
    },
    {
        type: 'color',
        icon: 'color-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            defaultValue: null,
            columnWidth: '200px',
            size: '',
            labelWidth: null,
            labelHidden: false,
            disabled: false,
            hidden: false,
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onValidate: '',
        },
    },
    {
        type: 'slider',
        icon: 'slider-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            columnWidth: '200px',
            showStops: true,
            size: '',
            labelWidth: null,
            labelHidden: false,
            disabled: false,
            hidden: false,
            required: false,
            requiredHint: '',
            validation: '',
            validationHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            min: 0,
            max: 100,
            step: 10,
            range: false,
            //vertical: false,
            height: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onValidate: '',
        },
    },
    {
        type: 'static-text',
        icon: 'static-text',
        formItemFlag: false,
        options: {
            name: '',
            columnWidth: '200px',
            hidden: false,
            textContent: 'static text',
            textAlign: 'left',
            fontSize: '13px',
            preWrap: false,  //是否自动换行
            //-------------------
            customClass: '',  //自定义css类名
            //-------------------
            onCreated: '',
            onMounted: '',
        },
    },
    {
        type: 'html-text',
        icon: 'html-text',
        formItemFlag: false,
        options: {
            name: '',
            columnWidth: '200px',
            hidden: false,
            htmlContent: '<b>html text</b>',
            //-------------------
            customClass: '',  //自定义css类名
            //-------------------
            onCreated: '',
            onMounted: '',
        },
    },
    {
        type: 'button',
        icon: 'button',
        formItemFlag: false,
        options: {
            name: '',
            label: '',
            columnWidth: '200px',
            size: 'small',
            displayStyle: 'inline-block',
            disabled: false,
            hidden: false,
            type: '',
            plain: false,
            round: false,
            circle: false,
            icon: null,
            //-------------------
            customClass: '',  //自定义css类名
            //-------------------
            onClick: '',
        },
    },
    {
        type: 'operate-button',
        icon: 'button',
        formItemFlag: false,
        options: {
            name: '',
            label: '',
            columnWidth: '200px',
            size: 'small',
            displayStyle: 'inline-block',
            disabled: false,
            hidden: false,
            type: 'default',
            plain: false,
            round: false,
            circle: false,
            icon: null,
            operateType:'add',
            //-------------------
            customClass: '',  //自定义css类名
            //-------------------
            onBtnClick: {},
        },
    },
    {
        type: 'divider',
        icon: 'divider',
        formItemFlag: false,
        options: {
            name: '',
            label: '',
            columnWidth: '200px',
            direction: 'horizontal',
            contentPosition: 'center',
            hidden: false,
            //-------------------
            customClass: '',  //自定义css类名
            //-------------------
            onCreated: '',
            onMounted: '',
        },
    },
    {
        type: 'el-table',
        icon: 'table',
        formItemFlag: true,
        options: {
            ref: "",
            name: '',//唯一名称
            // label: '',//标签
            // labelAlign: 'label-right-align',//标签对齐
            defaultValue: [],//默认值
            columnWidth: '200px',//
            size: 'small',//组件大小
            //displayStyle: 'inline',//显示样式
            // buttonStyle: false,//显示为按钮
            border: true,//带有边框
            // labelWidth: 0,//标签宽度
            labelHidden: true,//隐藏字段标签
            // disabled: false,//禁用
            hidden: false,//隐藏
            tableColumn: [//列表列配置
                {prop: "a",
                 label: "字段a",
                 sortable: false,
                 filterAble: false,
                 filterData:[],
                },
                {prop: "b", label: "字段b",
                sortable: false,
                filterAble: false,
                filterData:[],
                },
                {prop: "c", label: "字段c",
                sortable: false,
                filterAble: false,
                filterData:[],},
            ],
            dataSource: '',//当前组件配置的数据源
            // required: false,//必填字段
            // requiredHint: '',//必填校验提示
            // validation: '',//字段校验
            // validationHint: '',//校验失败提示
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //----组件独有事件------
            rowClick: "",
            currentChange: "",
            selectionChange: "",
            sortChange: "",
            filterChange: "",
            //-------------------
            // 单个组件所独有的Attributes
            attributeET: {
                stripe: true, // 是否为斑马线
                fit: true,//列的宽度是否自撑开
                showHeader: true,//是否显示表头
                highlightCurrentRow: false,//是否要高亮当前行
                showIndex: false,//是否显示序号
                selectionType: true,//是否多选
                operationShow: false,
                operationWidth: 100,
                operation: [],
            }
        },
    },
    {
        type: 'el-pagination',
        icon: 'pagination',
        formItemFlag: true,
        options: {
            name: '',//唯一名称
            labelHidden: true,//隐藏字段标签
            pageAttr: {
                size: [],
                page: [],
                total: []
            },
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //----组件独有事件------
            sizeChange: "",
            pageChange: "",
            //-------------------
            // 单个组件所独有的Attributes
        },
    },
    {
        type: 'tree',
        icon: 'tree',
        formItemFlag: true,
        options: {
            name: '',//唯一名称
            labelHidden: true,//隐藏字段标签
            defaultValue: [
                {
                    id: 1,
                    label: "一级 1",
                    children: [
                        {
                            id: 4,
                            label: "二级 1-1",
                            children: [
                                {
                                    id: 9,
                                    label: "三级 1-1-1",
                                },
                                {
                                    id: 10,
                                    label: "三级 1-1-2",
                                },
                            ],
                        },
                    ],
                },
                {
                    id: 2,
                    label: "一级 2",
                    children: [
                        {
                            id: 5,
                            label: "二级 2-1",
                        },
                        {
                            id: 6,
                            label: "二级 2-2",
                        },
                    ],
                },
                {
                    id: 3,
                    label: "一级 3",
                    children: [
                        {
                            id: 7,
                            label: "二级 3-1",
                        },
                        {
                            id: 8,
                            label: "二级 3-2",
                        },
                    ],
                },
            ],
            dataSource: '',//当前组件配置的数据源
            // 单个组件所独有的Attributes
            treeED: {
                accordion: false, // 是否同层级展开一个
                expand: false, // 是否默认展开
                label: 'label', //自定义标签字段
                children: 'children', // 自定义子节点字段
            },
            //----组件独有事件------
            handleNodeClick: "",
        },
    },
    {
        type: 'link',
        icon: 'link',
        formItemFlag: true,
        options: {
            name: '',//唯一名称
            labelHidden: true,//隐藏字段标签

            // 单个组件所独有的Attributes
            link: {
                linkName: '链接', //超链接名称
                url: '', //超链接地址
                target: '', //超链接方式
                disabled: false, //是否禁用
                underline: false, //是否有下划线
                type: '',//超链接类型
            }
        },
    },
    {
        type: 'transfer',
        icon: 'transfer',
        formItemFlag: true,
        options: {
            name: '',//唯一名称
            labelHidden: true,//隐藏字段标签

            // 单个组件所独有的Attributes
            transfer: {
                linkName: '链接', //超链接名称
                url: '', //超链接地址
                target: '', //超链接方式
                disabled: false, //是否禁用
                underline: false, //是否有下划线
                type: '',//超链接类型
            }
        },
    },
    {
        type: 'descriptions',
        icon: 'descriptions',
        formItemFlag: true,
        options: {
            name: '',//唯一名称
            labelHidden: true,//隐藏字段标签

            // 单个组件所独有的Attributes
            descriptions: {
                title:"描述列表",
                code:`[{"label":"用户名","value":"lololooo"},{"label":"用户名","value":"lololooo"}]`,
                border: false,
                direction:"horizontal",
                colon: false,
                column:3
            }
        },
    },
]

export const advancedFields = [
    {
        type: 'picture-upload',
        icon: 'picture-upload-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            labelWidth: null,
            labelHidden: false,
            columnWidth: '200px',
            disabled: false,
            hidden: false,
            required: false,
            requiredHint: '',
            customRule: '',
            customRuleHint: '',
            //-------------------
            uploadURL: '',
            uploadTip: '',
            withCredentials: false,
            multipleSelect: false,
            showFileList: true,
            limit: 3,
            fileMaxSize: 5, //MB
            fileTypes: ['jpg', 'jpeg', 'png'],
            //headers: [],
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onBeforeUpload: '',
            onUploadSuccess: '',
            onUploadError: '',
            onFileRemove: '',
            onValidate: '',
            //onFileChange: '',
        },

    },

    {
        type: 'file-upload',
        icon: 'file-upload-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            labelWidth: null,
            labelHidden: false,
            columnWidth: '200px',
            disabled: false,
            hidden: false,
            required: false,
            requiredHint: '',
            customRule: '',
            customRuleHint: '',
            //-------------------
            uploadURL: '',
            uploadTip: '',
            withCredentials: false,
            multipleSelect: false,
            showFileList: true,
            limit: 3,
            fileMaxSize: 5, //MB
            fileTypes: ['doc', 'docx', 'xls', 'xlsx'],
            //headers: [],
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onBeforeUpload: '',
            onUploadSuccess: '',
            onUploadError: '',
            onFileRemove: '',
            onValidate: '',
            //onFileChange: '',
        },
    },

    {
        type: 'rich-editor',
        icon: 'rich-editor-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            placeholder: '',
            labelWidth: null,
            labelHidden: false,
            columnWidth: '200px',
            disabled: false,
            hidden: false,
            required: false,
            requiredHint: '',
            customRule: '',
            customRuleHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            minLength: null,
            maxLength: null,
            showWordLimit: false,
            //-------------------
            onCreated: '',
            onMounted: '',
            onValidate: '',
        },
    },

    {
        type: 'cascader',
        icon: 'cascader-field',
        formItemFlag: true,
        options: {
            name: '',
            label: '',
            labelAlign: 'label-right-align',
            defaultValue: '',
            placeholder: '',
            size: '',
            labelWidth: null,
            labelHidden: false,
            columnWidth: '200px',
            disabled: false,
            hidden: false,
            clearable: true,
            filterable: false,
            multiple: false,
            checkStrictly: false,  //可选择任意一级选项，默认不开启
            showAllLevels: true,  //显示完整路径
            apiData: "",
            value_: "value",
            label_: "label",
            optionItems: [
                {label: 'select 1', value: 1, children: [{label: 'child 1', value: 11}]},
                {label: 'select 2', value: 2},
                {label: 'select 3', value: 3},
            ],
            required: false,
            requiredHint: '',
            customRule: '',
            customRuleHint: '',
            //-------------------
            customClass: '',  //自定义css类名
            labelIconClass: null,
            labelIconPosition: 'rear',
            labelTooltip: null,
            //-------------------
            onCreated: '',
            onMounted: '',
            onChange: '',
            onFocus: '',
            onBlur: '',
            onValidate: '',
        },
    },
]
export const layoutFields = [
    {
        type:'header',
        icon: 'rich-editor-field',
        formItemFlag: true,
        displayName:"头部",
        category: 'container',
        widgetList: [],
        options:{
            name:'',
            label:'',
            title:"",
            initStyle:{
                height:"38",
                minHeight:'38',
                width: "auto",
                backgroundColor:'rgb(36, 39, 108)',
                color:'#000',
                padding: "0",
                margin: "0",
            }, // 添加的样式
            
        }

    },
    {
        type:'header-menu',
        icon: 'rich-editor-field',
        formItemFlag: true,
        displayName:"布局",
        category: 'container',
        widgetList: [],
        options:{
            name:'',
            label:'',
            title:"",
            initStyle:{
                height:"38",
                minHeight:'38',
                width: "auto",
                backgroundColor:'rgb(36, 39, 108)',
                color:'#000',
                padding: "0",
                margin: "0",
            }, // 添加的样式
            
        }

    },
]
export const customFields = [{
    type: 'page',
    category: 'page',
    icon: 'page',
}]

export function addContainerWidgetSchema(containerSchema) {
    containers.push(containerSchema)
}

export function addBasicFieldSchema(fieldSchema) {
    basicFields.push(fieldSchema)
}

export function addAdvancedFieldSchema(fieldSchema) {
    advancedFields.push(fieldSchema)
}

export function addCustomWidgetSchema(widgetSchema) {
    customFields.push(widgetSchema)
}
